﻿using Admin.NET.Core;
namespace Admin.NET.Application.Entity;

/// <summary>
/// 学科
/// </summary>
[SugarTable("Xueke","学科")]
[SugarIndex("unique_xuanke_code", nameof(Xueke.Code), OrderByType.Asc, true)]
[SugarIndex("unique_xuanke_name", nameof(Xueke.Name), OrderByType.Desc, true)]
public class Xueke  : EntityBase
{
    /// <summary>
    /// 编码
    /// </summary>
    [SugarColumn(ColumnName = "Code", ColumnDescription = "编码", Length = 32)]
    public string? Code { get; set; }
    
    /// <summary>
    /// 名称
    /// </summary>
    [SugarColumn(ColumnName = "Name", ColumnDescription = "名称", Length = 32)]
    public string? Name { get; set; }
    
    /// <summary>
    /// 简称
    /// </summary>
    [SugarColumn(ColumnName = "ShortName", ColumnDescription = "简称", Length = 32)]
    public string? ShortName { get; set; }
    
    /// <summary>
    /// 启用
    /// </summary>
    [SugarColumn(ColumnName = "Enable", ColumnDescription = "启用")]
    public bool? Enable { get; set; }
    
    /// <summary>
    /// 主科
    /// </summary>
    [SugarColumn(ColumnName = "IsMain", ColumnDescription = "主科")]
    public bool? IsMain { get; set; }
    
    /// <summary>
    /// 序号
    /// </summary>
    [SugarColumn(ColumnName = "SortIndex", ColumnDescription = "序号", Length = 32)]
    public string? SortIndex { get; set; }
    
    /// <summary>
    /// 备注
    /// </summary>
    [SugarColumn(ColumnName = "Remark", ColumnDescription = "备注", Length = 32)]
    public string? Remark { get; set; }
        
}
